import { LeftList } from '../../../services/good/fetchCategoryList';
// import { getCategoryList } from '../../../services/good/fetchCategoryList';
Page({
	data: {
		catelist: [],
	},
	onShow() {
	},
	onChange(e) {
		console.log(e, "e");
		// const goodsId = e.detail.item.categoryId
		// wx.navigateTo({
		// 	url: `/pages/goods/details/index?goodsId=${13}`,
		// });
		// wx.navigateTo({
		//   url: '/pages/goods/list/index',
		// });
	},
	onLoad() {
		this.getLeftCateList();
	},
	getLeftCateList() {
		LeftList().then((res) => {
			if (res.code == '0000') {
				this.setData({
					catelist: res.data[0]
				})
			}
		})
	}
});
